<?php
class Payment extends Module{
	function __construct($row){

		Module::Module($row);
        // sohapay_complete: Hoàn tất thanh toán qua sohapay,
        // complete: Hoàn tất thanh toán qua COD/Office
        // success: trang thông báo thành công
		switch(Url::get('cmd')){
			case 'sohapay_complete':
				require_once 'forms/sohapay_complete.php';
				$this->add_form(new sohapayCompleteForm);
				break;
            case 'sohapay_complete_deal':
                require_once 'forms/sohapay_complete_deal.php';
                $this->add_form(new sohapayCompleteDealForm);
                break;
            case 'complete':
                require_once 'forms/complete.php';
                $this->add_form(new completeForm);
                break;
            case 'success':
                require_once 'forms/success.php';
                $this->add_form(new successForm);
                break;
			default:
				require_once 'forms/payment.php';
				$this->add_form(new paymentForm);
				break;
		}
	}
}